package com.reagent.system.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.io.Serializable;

/**
 * <p>
 * 
 * </p>
 *
 * @author Heyue
 * @since 2020-11-26
 */
@Data
  @EqualsAndHashCode(callSuper = false)
    @ApiModel(value="Type对象", description="")
public class Type implements Serializable {

    private static final long serialVersionUID = 1L;

      @ApiModelProperty(value = "类别ID")
        @TableId(value = "id", type = IdType.AUTO)
      private Integer id;

      @ApiModelProperty(value = "类别名称")
      private String name;

      @ApiModelProperty(value = "类别描述")
      @TableField("`desc`")
      private String desc;


}
